\frame[containsverbatim]
{
  \frametitle{sawOpcode() implementation}
{\scriptsize
\begin{verbatim}
  @Override
  public void sawOpcode(int seen) {
    if (seen != Constants.INVOKESTATIC) { return; }
    
    String calledClassName = getClassConstantOperand();
    String calledMethodName = getNameConstantOperand();
    String calledMethodSig = getSigConstantOperand();
    
    if (calledClassName.equals("java/lang/System")
        && calledMethodName.equals("gc")
        && calledMethodSig.equals("()V")) {
      emitWarning();
    }
  }

  private void emitWarning() {
   System.out.println("Warn about " + getMethodName()); // TODO
  }
\end{verbatim}
}
}
